#include<iostream>
#include<vector>
using namespace std;
int main()
{
	vector<int>res;
	for (int i = 1; i < (1<<3); i++) {
		int s = 0;
		vector<int>ans;
		for (int j = 0; j < 3; j++) {
			//0101
			if (i & (1 << j)) {
				ans.push_back(j + 1);
			}
		}
		for (auto x : ans) {
			s = s * 10 + x;
		}
		res.push_back(s);
	}
	for (auto x : res) {
		cout << x << endl;
	}
	return 0;
}